<%@ page language="java"  pageEncoding="utf-8"%>
<%@ include file="../../common/tag.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>查询所有联系人</title>
    <style type="text/css">
        table td{
            /*文字居中*/
            text-align:center;
        }

        /*合并表格的边框*/
        table{
            border-collapse:collapse;
        }
    </style>
</head>

<body>
<center><h3>秒杀列表</h3></center>
<table align="center" border="1" width="700px">
    <tr>
        <th>名称</th>
        <th>库存</th>
        <th>开始时间</th>
        <th>结束时间</th>
        <th>创建时间</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${list}" var="sk" varStatus="varSta">
        <tr>
            <td>${sk.name }</td>
            <td>${sk.number }</td>
            <td><fmt:formatDate value="${sk.startTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
            <td><fmt:formatDate value="${sk.endTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
            <td><fmt:formatDate value="${sk.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
            <td><a href="/seckill/${sk.seckillId }/detail">详情</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>

